
    <div id="sidebar-border">
      <div id="rss">
        <a href="http://g5/test/wordpress3/?feed=rss2" rel="nofollow" title="RSS 訂閱">RSS 訂閱</a>
      </div>
      <div id="sidebar">

        <div id="search-2" class="widget widget_search">
          <form id="searchform" method="get" action="http://g5/test/wordpress3/">
            <input type="text" value="站內搜索" onfocus="if (this.value == '站內搜索') {this.value = '';}" onblur="if (this.value == '') {this.value = '站內搜索';}" size="35" maxlength="50" name="s" id="s" />
            <input type="submit" id="searchsubmit" value="搜索" />
          </form>
        </div>

<?php
        if( $this->loginUser ) {
echo <<<EOD
        <div id="login-2" class="widget widget_meta">
          <h3 class="widgettitle">{$this->loginUser->getAccount()} 已登入!</h3>
          <ul>
            <li><a href="#" situs="{$this->url->get('adminBlogArticle','new')}" class="openWorkWin" title="add post">新增文章</a></li>
            <li><a href="{$this->url->get('adminBlog','setting')}" title="admin manage">管理後台</a></li>
            <li><a href="{$this->url->get('member','logout')}" title="logout">登出</a></li>
          </ul>
        </div>
EOD;
        }
        else {
            $loginAction = $this->createUrl('member/form/goBlog');
echo <<<EOD
        <div id="login-2" class="widget widget_meta">
          <h3 class="widgettitle">登錄資訊</h3>
          <ul>
            <li><a href="{$loginAction}">登錄</a></li>
          </ul>
        </div>
EOD;
        }
?>

        <div id="recent-posts-2" class="widget widget_recent_entries">
          <h3 class="widgettitle">近期文章</h3>
          <ul>
            <li><a href="http://g5/test/wordpress3/?p=4" title="aaaaaaaaaa">aaaaaaaaaa</a></li>
            <li><a href="http://g5/test/wordpress3/?p=1" title="世界，你好！">世界，你好！</a></li>
          </ul>
        </div>
        <div id="recent-comments-2" class="widget widget_recent_comments">
          <h3 class="widgettitle">近期評論</h3>
          <ul id="recentcomments">
            <li class="recentcomments">
              <a href='http://wordpress.org/' rel='external nofollow' class='url'>WordPress 先生</a> 發表在《
              <a href="http://g5/test/wordpress3/?p=1#comment-1">世界，你好！</a>》</li>
          </ul>
        </div>
        <div id="archives-2" class="widget widget_archive">
          <h3 class="widgettitle">文章歸檔</h3>
          <ul>              <li>
            <a href='http://g5/test/wordpress3/?m=201107' title='2011 年七月'>2011 年七月</a></li>
          </ul>
        </div>
        <div id="categories-2" class="widget widget_categories">
          <h3 class="widgettitle">分類目錄</h3>
          <ul>
            <li class="cat-item cat-item-1">
              <a href="http://g5/test/wordpress3/?cat=1" title="查看 未分類 下的所有文章">未分類</a> </li>
          </ul>
        </div>
        <div id="meta-2" class="widget widget_meta">
          <h3 class="widgettitle">功能</h3>
          <ul>
            <li><a href="http://g5/test/wordpress3/?feed=rss2" title="使用 RSS 2.0 訂閱本站點內容">文章<abbr title="Really Simple Syndication">RSS</abbr></a></li>
            <li><a href="http://g5/test/wordpress3/?feed=comments-rss2" title="使用 RSS 訂閱本站點的所有文章的近期評論">評論<abbr title="Really Simple Syndication">RSS</abbr></a></li>
            <li><a href="http://google.com.tw/" title="google search">google</a></li>
          </ul>
        </div>
      </div>
      <!-- end: #sidebar -->
    </div>
    <!-- end: #sidebar-border -->
